<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>keyEvent</title>
    <style>
	body{
        background-color:gray;
    }
    .box {
        width: 200px;
        height: 150px;
        line-height: 150px;
        text-align: center;
        background-color: orange;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -100px;
        margin-top: -75px;
     }
     a{
        font-size:3em;
     }
    </style>
</head>
<body>
<div class="box">
    <input type="text" id="EditText"/><br/>
</div>
</body>
<script>
    function getEditText(){
        return document.getElementById("EditText").value
    }
</script>
</html>